#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>


 

 
int main(int argc, char *argv[])
{
    SDL_Surface *ecran = NULL;
SDL_Surface *Naruto[3];
    SDL_Rect positionNaruto;

	Naruto[0] = SDL_LoadBMP("kupo.bmp");  
	Naruto[1] = SDL_LoadBMP("kupoface1.bmp");
	Naruto[2] = SDL_LoadBMP("kupoface2.bmp");



    positionNaruto.x = 40;
    positionNaruto.y = 30;

    SDL_Init(SDL_INIT_VIDEO);

    ecran = SDL_SetVideoMode(800, 600, 32, SDL_INIT_VIDEO | SDL_DOUBLEBUF);
    SDL_WM_SetCaption("Animation marche", NULL);
    SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 45, 230, 34));
    
 //afficher_naruto_fixe(Naruto,ecran ,&positionNaruto);
 afficher_naruto_avance(Naruto,ecran ,&positionNaruto);


    pause();

    	SDL_FreeSurface(Naruto[0]); /* On libère la surface */
	SDL_FreeSurface(Naruto[1]);
	SDL_FreeSurface(Naruto[2]);    
SDL_Quit();
    
    return EXIT_SUCCESS;
}
 

